<template>
	<view>
		<!-- 支付明细S -->
		<view class="content-wrap tp-w690">
			<view class="rider_info-wrap" v-for="(item, index) in orderInfo" :key="index">
				<view class="common_tit-wrap">
					<view class="l-wrap">支付明细</view>
					<view class="r-wrap"></view>
				</view>
				<view class="service_list" >
					<view class="service_item">
						<text class="name">价格</text>
						<text class="price" style="color:#FF4A37;font-size: 30rpx;">￥{{item.price}}</text>
					</view>
					<view class="service_item">
						<text class="name">备注： {{item.remark || ' '}}</text>
					</view>
					<view class="service_item">
						<text class="name">支付时间</text>
						<text class="price">{{item.payTime || '未支付'}}</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 支付明细E -->
		<view class="btn" v-if="item.payStatus==0">支付</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				orderInfo: [],
			};
		},
		onLoad(opt) {
			this.orderInfo = opt && opt.orderInfo && JSON.parse(opt.orderInfo)
		},
		
	}
</script>

<style lang="scss" scoped>
.content-wrap {
	margin-top: 20rpx;
	.input-wrap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 88rpx;
		font-size: 30rpx;
		padding: 0 30rpx;
		background-color: #fff;
		border-radius:12rpx;
		box-sizing: border-box;
		.r-wrap {
			display: flex;
			justify-content: flex-end;
			align-items: center;
			.price {
				color: $red;
			}
		}
	}
	.remark {
		width:690rpx;
		border-radius:12rpx;
		background-color: #fff;
		font-size: 30rpx;
		line-height: 60rpx;
		padding: 30rpx;
		box-sizing: border-box;
		.txt {
			padding: 100rpx;
		}
	}
	.rider_info-wrap {
		width:690rpx;
		background:#fff;
		border-radius:12rpx;
		padding: 30rpx 30rpx 0;
		box-sizing: border-box;
		margin-bottom: 30rpx;
		.common_tit-wrap {
			box-sizing: border-box;
			.l-wrap {
				font-size: 28rpx;
				font-weight:500;
			}
		}
		.back_reason {
			font-size: 30rpx;
			font-weight: 500;
			line-height: 50rpx;
			padding: 20rpx 0;
		}
		
		.driver_list {
			transition: all 0.3s ease;
			overflow: hidden;
			.driver_item {
				display: flex;
				align-items: center;
				height: 100rpx;
				font-size: 28rpx;
				font-weight: 500;
				border-bottom: 1px solid #ebebeb;
				justify-content: space-between;
				.name {
					display: inline-block;
					font-size: 30rpx;
					font-weight: bold;
					width: 160rpx;
					padding-right: 20rpx;
					box-sizing: border-box;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
				}
				.num-wrap {
					flex: 1;
					display: flex;
					justify-content: space-between;
					align-items: center;
				}
			}
		}
		
		.service_list {
			transition: all 0.3s ease;
			overflow: hidden;
			.service_item {
				font-size: 30rpx;
				height: 90rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;
				border-bottom: 1px solid #ebebeb;
				&:last-child {
					border: none;
				}
			}
		}
		
		.more_rider {
			height: 83rpx;
			line-height: 83rpx;
			text-align: center;
			color: #999;
			border-top: 1px solid #ebebeb;
		}
	}
}

.btn {
	width:580rpx;
	margin: 80rpx auto;
	height:80rpx;
	line-height: 80rpx;
	background:$yellow;
	border-radius:40rpx;
	color: #fff;
	font-size: 30rpx;
	font-weight: 500;
	text-align: center;
}
</style>
